﻿<!DOCTYPE html>
@model List<MyMVC.Model.Employee>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>已删除显示数据</title>
</head>
<body>
    <a href="@Url.Content("/Login/logout")" style="margin-right:50px">注销</a>

    <h1 style="text-align:center">显示已删除数据</h1>
    <table border="1" align="center" height="100" width="1000">
        <tr style="text-align:center ">
            <td>ID</td>
            <td>头像</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
            <td>出生年月</td>
            <td>工资</td>
            <td>所属部门</td>
            <td colspan="3">相关操作</td>
        </tr>

        @foreach (var item in Model)
        {
        <tr style="text-align:center">
            <td>@item.EmpId</td>
            <td><img src="@item.image" style="height:50px" width="100" /></td>
            <td>@item.EmpName</td>
            <td>@item.Age</td>
            <td>@item.Sex</td>
            <td>@item.AddTime.ToString("yyyy/mm/dd")</td>
            <td>@item.Wage</td>
            <td>@item.department.DepName</td>
            <td>
                @Html.ActionLink("还原", "huanyuan", new { id = item.EmpId }, new { onclick = "return confirm('你确定要还原该数据吗？')" })
            </td>
        </tr>
        }

        <tr>
            <td colspan="9" style="text-align:center">
                <input type="button" value="返回" onclick="history.back(-1)" />
            </td>
        </tr>

    </table>


</body>
</html>
